import math
line = input().split(" ")
n = int(line[0])
s = float(line[1])
area = (n * s ** 2) / (4 * math.tan(math.pi / n))
print("%.2f" % area)
